<template>
	<view class="goods-item">
		<view class="goods-item-left">
			<image class="goods-pic" :src="'http://1.14.101.56:82/'+item.productImg"></image>
		</view>
		<view class="goods-item-right">
			<view class="goods-name">{{item.productName}}</view>
			<view class="goods-info-box">
				<view class="goods-price">¥{{item.price }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list:{
				type:Object,
				default:{}
			}
		},
		name:"my-product",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.goods-item {
    width: 750rpx;
    box-sizing: border-box;
    display: flex;
    padding: 10px 5px;
    border-bottom: 1px solid #f0f0f0;

    .goods-item-left {
      margin-right: 5px;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .goods-pic {
        width: 100px;
        height: 100px;
        display: block;
      }
    }

    .goods-item-right {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: space-between;

      .goods-name {
        font-size: 13px;
      }

      .goods-info-box {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .goods-price {
          color: #C00000;
          font-size: 16px;
        }
      }
    }
  }
</style>